package com.mediaerobics.advflexapp.controls {
	import mx.controls.Button;
	import mx.events.FlexEvent;
	import com.mediaerobics.advflexapp.assets.AssetLib;

	public class SkinnedButton extends Button {
		public function SkinnedButton() {
			super();
			super.addEventListener(FlexEvent.CREATION_COMPLETE, init);
		}
		
		private function init(event:FlexEvent):void {
			setStyle('upSkin', AssetLib.btnUp);
			setStyle('downSkin', AssetLib.btnDown);
			setStyle('overSkin', AssetLib.btnOver);
		}
		
	}
}